<include file="Common/header" />
{$bread_crumb}
<div class="page-container">
    <form class="form form-horizontal" id="form-article-add" action="{:U('setting/update')}" method="post">
        <div id="tab-system" class="HuiTab">
            <div class="tabBar cl">
                <span>店铺设置</span>
                <span>设置1</span>
                <span>设置2</span>
                <span>系统设置</span>
            </div>
            <div class="tabCon">
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">
                        <span class="c-red">*</span>
                        新品缓存时间：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <input type="text" class="input-text" style="width: 20%" placeholder="请填写红包最小金额，如1.00" id="shop_new_goods_expire" name="shop_new_goods_expire" value="{$setting['shop_new_goods_expire']}"> 秒 <span class="c-red">填写数量越小将越影响服务器性能，建议1个小时（3600秒）</span>
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">
                        <span class="c-red">*</span>
                        新品数量限制：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <input type="text" class="input-text" style="width: 20%" placeholder="" id="shop_new_goods_limit" name="shop_new_goods_limit" value="{$setting['shop_new_goods_limit']}"> 个
                    </div>
                </div>
                <div class="row cl">
                    <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
                        <button onClick="window.location='{:U('setting/cleanNewGoods')}';" class="btn btn-danger radius" type="button"><i class="Hui-iconfont">&#xe6e2;</i> 清空新品缓存</button>
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">
                        <span class="c-red">*</span>
                        商品缓存时间：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <input type="text" class="input-text" style="width: 20%" placeholder="" id="goods_cache_expire" name="goods_cache_expire" value="{$setting['goods_cache_expire']}"> 秒 <span class="c-red">建议4个小时（14400秒）</span>
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">
                        <span class="c-red">*</span>
                        语音匹配程度：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <input type="text" class="input-text" style="width: 20%" placeholder="填写1-100,语音匹配超过此项，则认为匹配成功，建议60-80之间" id="red_voice_match_percent" name="red_voice_match_percent" value="{$setting['red_voice_match_percent']}" >% <span class="c-red">匹配程度超过此值，则系统认为匹配成功</span>
                    </div>
                </div>
            </div>
            <div class="tabCon">
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">允许访问后台的IP列表：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <textarea class="textarea" name="" id=""></textarea>
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">后台登录失败最大次数：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <input type="text" class="input-text" value="5" id="" name="" >
                    </div>
                </div>
            </div>
            <div class="tabCon">
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">邮件发送模式：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <input type="text"  class="input-text" value="" id="" name="">
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">SMTP服务器：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <input type="text" id="" value="" class="input-text">
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">SMTP 端口：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <input type="text" class="input-text" value="25" id="" name="" >
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">邮箱帐号：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <input type="text" class="input-text" value="5" id="emailName" name="emailName" >
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">邮箱密码：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <input type="password" id="email-password" value="" class="input-text">
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">收件邮箱地址：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <input type="text" id="email-address" value="" class="input-text">
                    </div>
                </div>
            </div>
            <div class="tabCon">
                <div class="row cl">
                    <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
                        <button onClick="window.location='{:U('setting/cleanRules')}';" class="btn btn-danger radius" type="button"><i class="Hui-iconfont">&#xe6e2;</i> 清空权限缓存</button>
                    </div>
                </div>
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
                <button onClick="article_save_submit();" class="btn btn-primary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i> 保存</button>
                <button onClick="layer_close();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
            </div>
        </div>
    </form>
</div>
<include file="Common/footer" />
<!-- tab 切换 -->
<script type="text/javascript">
$(function(){
    $('.skin-minimal input').iCheck({
        checkboxClass: 'icheckbox-blue',
        radioClass: 'iradio-blue',
        increaseArea: '20%'
    });
    $("#tab-system").Huitab({
        index:0
    });
});
</script>